package com.ruoyi.web.sso.common.util;

import java.util.Set;

public class RedisUtil {

    private static final String TICKET_FORMAT = "%s-%s-%s";

    public static  String getTicket(String staffId, String platformId) {
        String key = SignUtil.mySign(staffId + platformId, "utf-8");
        String ticket = String.format(TICKET_FORMAT, key, platformId, System.currentTimeMillis());
        return ticket;
    }
}
